<template>
	<view>
		<!--打卡记录列表-->
		<clockin-record v-if="!loading" ref="clockinRecord" :more="false" :taskId="taskId" :uid="uid"></clockin-record>
	</view>
</template>

<script>
	import { mapState,mapMutations } from 'vuex'
	import ClockinRecord from './components/clockinRecord.vue'
	export default {
		components:{
			ClockinRecord
		},
		data() {
			return {
				loading: true, // 加载中
				urlParams: {}, // url传递过来的参数
				taskId: 0,
				uid: 0
			}
		},
		async onLoad(option) {
			await this.$onLaunched;
			//获取url参数
			this.urlParams = option
			this.taskId = option.task_id
			this.uid = option.uid
			console.log(this.uid)
			await this.$nextTick(() => {
				this.loading = false
			})
		},
		created() {
			
		},
		computed: {
			...mapState(['config'])
		},
		methods: {
			
		},
		onReachBottom() {
			console.log('页面滚动到底部')
			this.$refs.clockinRecord.getClockinlist()
		},
	}
</script>

<style>

</style>
